package com.qyl.honghengshop.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.qyl.honghengshop.dto.Goods_type;
import com.qyl.honghengshop.utils.PageBean;


public interface GoodsTypeMapper {

	int getRecordCount(Goods_type goods_type);

	List<Goods_type> shopTypeList(@Param("pageBean")PageBean pageBean,@Param("goods_type")Goods_type goods_type);

	Goods_type queryGoodsTypeByTypeCode(String type_code);

	List<Goods_type> getShopTypeAjax();

	int add(Goods_type goods_type);

	int delShopType(String code);

	Goods_type getShopTypeByCode(String code);

	int update(Goods_type goods_type);

	List<Map<String, String>> getMaxGoodTypes();

	List<Map<String, String>> getMinGoodTypes(String code);

	void setIndexFieldToZero(Integer index_filed);

	int getIndexTypeNum();

	Map<String, String> getCodeByIndexFiled(int i);
	
}
